SetFreezePanesType
Sets a type to the freeze panes.
Syntax
expression.SetFreezePanesType(FreezePaneType);
expression
- A variable that represents a Api class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
FreezePaneType | Required | FreezePaneType | The freeze panes type ("null" to unfreeze). |
Returns
This method doesn't return any data.
Example
This example freezes first column and get pastes a freezed range address into the table.
Api.SetFreezePanesType('column');
var oWorksheet = Api.GetActiveSheet();
var oFreezePanes = oWorksheet.GetFreezePanes();
var oRange = oFreezePanes.GetLocation();
oWorksheet.GetRange("A1").SetValue("Location: ");
oWorksheet.GetRange("B1").SetValue(oRange.GetAddress());